package com.lu.pojo.enumerate;

/**
 * @author luzhenfang
 * @date   2020 07 06
 * @description 枚举类型
 *  - Season
 *      - Enum
 *      - filed
 *      - construct
 *      - methods
 */
public enum  Season {
    SPRING("春",1),
    SUMMER("夏",2),
    AUTUMN("秋",3),
    WINTER("冬",4);
    private String name;
    private int id;

    Season(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}

